package edu.washington.tcss360.burningpenguins.queries;

import java.util.Date;

/**
 * Queries by the UpdateDeadline column of a table.
 * @author Chris Gelatt
 * @version 1.0
 * @since 2013-11-2
 *
 */
public class ByUpdateDeadline implements QueryBy
{
	private Long updateDeadline;
	
	public ByUpdateDeadline(Long updateDeadline)
	{
		this.updateDeadline = updateDeadline;
	}
	
	public ByUpdateDeadline(Date updateDeadline)
	{
		this.updateDeadline = updateDeadline.getTime();
	}
	
	/**
	 * {@inheritDoc}
	 */
	public String toString()
	{
		return "UpdateDeadline = " + updateDeadline;
	}
}